package com.itheima.arraylist;

import com.itheima.domain.Student;

import java.lang.reflect.Array;
import java.util.ArrayList;

public class ArrLI {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        list.add(new Student());
        list.add(new Student());
        list.add(new Student());
        list.add(new Student());
        list.add(new Student());
        list.add(new Student());
        System.out.println(list);

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));

        }

    }


}
